<include file="common/hearder"/>
<h4><span class="dq  glyphicon glyphicon-user">员工调遣的详情页</span></h4>
<div class="hr"></div>
<form action="{:U('del_all')}" method="get">
    <table class="table table-hover table-bordered" style="margin: 40px 0 0 0;">
        <thead>
        <th class="active">编号</th>
        <th class="active">被调员工</th>
        <th class="active">就任部门</th>
        <th class="active">就任岗位</th>
        <th class="active">意向部门</th>
        <th class="active">意向岗位</th>
        <th class="active">调离时间</th>
        <th class="active">状态</th>
        <th class="active">操作</th>
        </thead>
        <tbody>
        <foreach name="list" item="ll">
            <foreach name="ll" item="r" >
            <tr>
                <td>{$r.rmd_id}</td>
                <td>{$staffinfoNameList[$r['stf_id']]['stf_name']}</td>
                <td>{$departlist[$r['dpt_fid']]}</td>
                <td>{$postinfoNameList[$r['pt_fid']]}</td>
                <td>{$departlist[$r['dpt_aid']]}</td>
                <td>{$postinfoNameList[$r['pt_aid']]}</td>
                <td>{$r.rmd_time}</td>
                <td><?php if($r['status'] == -1){ echo '已退回';}elseif($r['status'] == 0){ echo '已完成';}else{ echo '审核中';} ?></td>
                <td>
                    <a href="{:U('a_shows',array('rmd_id'=>$r['rmd_id'],'check'=>1))}" class="btn btn-xs btn-danger">审核</a>
                </td>
            </tr>
            </foreach>
        </foreach>
        </tbody>
    </table>
</form>
<style>
    .dq {
        display: block;
        margin-top: 20px;
    }

    .hr {
        margin-bottom: -10px;
        width: 100%;
        height: 1px;
        border: 1px solid #cdcdcd;
    }

    .prev, .next {
        font-size: 12px;
        line-height: 22px;
    }

    .prev, .current, .num, .next {
        display: block;
        width: 44px;
        height: 37px;
        border: 1px solid #ddd;
        text-align: center;
        padding: 7px 12px;
        float: left;
        margin: 0 5px;
    }

    .prev:hover, .num:hover, .next:hover {
        background-color: #ddd;
    }

    .current {
        background-color: #36b1ef;
        color: white;
        border: 1px solid #36b1ef;
    }

    .show_page {
        float: right;
    }
</style>
<script>
    $('.check_all').on('click', function () {
        if ($(this).prop('checked')) {
            $('.check_item').each(function () {
                if ($(this).prop('checked')) {
                    $(this).prop('checked', false);
                } else {
                    $(this).prop('checked', true);
                }
            });
        } else {
            $('.check_item').prop('checked', false);
        }
    });
</script>
<include file="common/footer"/>